/*
* Copyright (c) 2021 Peng Cheng Laboratory.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/*-----------------------------------------------------------------------------
 *  
 *  Name:		 MegaTurbo: A Scalable FPGA-based Engine for MegaFlow Classifier in Open vSwitch
 *  Version:	 3.0 (release)
 *  Author:		 Wenjun Li(Peng Cheng Laboratory, Email:wenjunli@pku.edu.cn)	 
 *  Date:		 11/24/2025 
 *  Note:		 version 3.0 was modified by Sheng Lan (under the guidance of Wenjun Li), a Ph.D. student at Peking University. 
 *  [1] Sheng Lan, Ying Li, Zhongxian Liang, Wenjun Li*, Yao Xin, Ying Wan, Hui Li, Weizhe Zhang, ACM/SIGDA FPGA 2026.
 *-----------------------------------------------------------------------------
 */


MegaTree, Version 3.0  
Tested on Ubuntu 22.04.5 LTS

Requirement:
gcc version 11.4.0.


Installation: make
How to run: ./main [options]

Usage:
./main [-b bucketSize][-d maxDepth][-r ruleset][-e trace][-c (1:classification)][-u (1:update)]
Try now:
./main 
or 
./main -b 8 -d 12 -r ./fw1_megaflow_100k.rules    -e ./fw1_packets_100k.trace -c 1 -u 1 



